package JD_CAST_COL_MIGHT;

import java.util.HashMap;
import java.util.Map;

public class Fixed_01 {
    Map<String, Object> map = new HashMap<String, Object>();
    public void setInfo(String str1, String str2) {
        map.put("ID", str1);
        map.put("NAME", str2);
    }
    public void getInfo() {
        Test test = new Test();
        test.setInfo("might", "must");
        for(Object obj : map.keySet()){
            if(map.get(obj) instanceof String){
                System.out.println("Name==>"+(String)map.get(obj));
            }
        }
    }
}
